package com.movitech.mobile.cz.base.modules.config;

/**
 * 消息通知类型枚举
 * @author Jack.Gong
 * @since 2018-03-09
 *
 */
public enum MessagesMsgTypeEnum {
	MsgType1("采购方案内部通知", 1),
	MsgType2("专项招标公告", 2),
	MsgType3("战略招标公告", 3),
	MsgType4("邀请函", 4),
	ANNOUNCEMENT_NOTICE("公告通知(外网)", 5),
	MsgType6("现场考察公告", 6),
	MsgType7("中标公告", 7),
	MsgType8("答疑文件",8),
	MsgType9("补遗文件",9),
	MsgType10("询标问卷",10),
	MsgType11("未中标感谢信", 11),
	MsgType12("中标通知书", 12),
	MsgType13("中标通知", 13),
	MsgType14("修改回标时间通知",14);

	private String desc;
	private int code;
	
	private MessagesMsgTypeEnum(String desc, int code){
		this.desc = desc;
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public static String getDesc(Integer code) {
		for (MessagesMsgTypeEnum c : MessagesMsgTypeEnum.values()) {
			if (c.getCode()==code) {
				return c.getDesc();
			}
		}
		return null;
	}
	
}
